package com.ktjy.crm.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ktjy.crm.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;

@Mapper
public interface UserMapper extends BaseMapper<User> {
    public User getUserByNameWithRoleName(String username);
    public IPage<User> getUserByPage(Page<User> page, @Param("map")HashMap<String,Object> hashMap);
}
